<template>
  <div class="dashboard-container">
    <div class="dashboard-text">name111: {{ username }}</div>
    <svg-icon icon-class="link" />
    <svg-icon icon-class="eye" />
    <svg-icon icon-class="eye-open" />

    <!-- 测试对话框 -->
    <!-- el-dialog 我封装的 => @click="$emit('update:visible', false)" -->
    <el-dialog title="你好" :visible.sync="flag">
      <!-- 默认插槽决定对话框中的内容 -->
      123
    </el-dialog>
  </div>
</template>

<script>
import { mapGetters } from 'vuex'

export default {
  name: 'Dashboard',
  data() {
    return {
      //
      flag: false
    }
  },
  computed: {
    ...mapGetters([
      'username'
    ])
  }
}
</script>

<style lang="scss" scoped>
.dashboard {
  &-container {
    margin: 30px;
  }
  &-text {
    font-size: 30px;
    line-height: 46px;
  }
}
</style>
